var throttle = function(func,wait){
	let timer
	return function(){
		if(timer){return}
		timer = setTimeout(function(){
		func();
		timer = null
	},wait)
	}
}

export default throttle